package cn.iocoder.yudao.module.xhyy.controller.app.book.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "用户 APP - 教材教辅 Response VO")
@Data
@ExcelIgnoreUnannotated
public class AppBookRespVO {

    @Schema(description = "书籍Id", example = "2")
    private Integer id;
    @Schema(description = "类型，教材，教参，杂志等", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty(value = "类型，教材，教参，杂志等", converter = DictConvert.class)
    @DictFormat("xhyy_book_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer bookType;

    @Schema(description = "年级")
    @ExcelProperty(value = "年级", converter = DictConvert.class)
    @DictFormat("xhyy_grade") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer grade;

    @Schema(description = "书籍名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @ExcelProperty("书籍名称")
    private String bookName;

    @Schema(description = "书籍封面", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("书籍封面")
    private String bookCover;

    @Schema(description = "编写单位")
    @ExcelProperty("编写单位")
    private String compile;

    @Schema(description = "出版社")
    @ExcelProperty("出版社")
    private String press;

    @Schema(description = "书籍简介")
    @ExcelProperty("书籍简介")
    private String introduction;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}